# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-podman
pkgver=5.2.0
pkgrel=0
pkgdesc="Python bindings for Podman's RESTful API"
url="https://github.com/containers/podman-py"
license="Apache-2.0"
arch="noarch"
depends="py3-requests py3-urllib3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-requests-mock py3-fixtures"
subpackages="$pkgname-pyc"
source="https://github.com/containers/podman-py/archive/v$pkgver/py3-podman-$pkgver.tar.gz"
builddir="$srcdir/podman-py-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest podman/tests/unit
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/podman-$pkgver-py3-none-any.whl
}

sha512sums="
6189415d644cf74868ccc5d560414fa876c1e0525ca028e7436a804ffe3a1219dead37223619e3d248da455856989407482638856b68cabeaf3ca4f02a9cf25c  py3-podman-5.2.0.tar.gz
"
